package com.youlv.yl.dao;

import com.youlv.yl.entity.hotel.OrderPay;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 订单支付表 Mapper 接口
 * </p>
 *
 * @author fenghe
 * @since 2022-01-25
 */
@Repository
public interface OrderPayDao extends BaseMapper<OrderPay> {

    @Update("update h_order_pay set flag=#{f},utime=now() where id=#{id}")
    int updateFlag(@Param("f") Integer f, @Param("id") Long id);
}
